package src.com.zt.demo.interface_extends_demo.object_interface;

public class Demo {
    public static void main(String[] args) {
//        Color c1 = new Red();
//        Color c2 = new Blue();
//        c1.show();
//        c2.show();
//
//        //Color c3 = new Color(); 抽象类不能进行实例化
//
//        Teacher lee = new MathTeacher();
//        Teacher tom = new EnglishTeacher();
//        lee.Teaching();
//        tom.Teaching();

            Seagull jack = new Seagull("白色");
            jack.eat();
            jack.move();
            jack.growFeather();
            jack.reproduce();

        System.out.println();

            Chicken chicken = new Chicken("黄色");
            chicken.eat();
            chicken.move();
            chicken.growFeather();
            chicken.reproduce();

    }
}
